import { Injectable } from "@nestjs/common";
import { InjectRepository } from "@nestjs/typeorm";
import { Repository } from "typeorm";

import { TonSku, TonSkuGateway } from "qqlx-core";
import { TonSkuSchema } from "qqlx-cdk";

import { PgDaoBigId } from "../../lib/dao.pg.id-big";

@Injectable()
export class TonSkuDao extends PgDaoBigId<TonSku> {
  constructor(
    @InjectRepository(TonSkuSchema)
    readonly repo: Repository<TonSku>,
  ) {
    super({
      repository: repo,
      relations_name: TonSkuGateway.relations,
    });
  }
}
